/**
 * @author Usuario
 */

flymail.app.ui.NavigationPane = Ext.extend(Ext.tree.TreePanel, {
	initComponent: function(){
		config = {
			title: 'Favorite Folders',
			id: 'navpane',
			layout: 'fit',
			region: 'west',
			width: 150,
			minWidth: 150,
			maxWidth: 400,
			collapsible: true,
			split: true,
			margins: '5 0 5 5',
			cmargins: '5',
			title: 'Mail Folders',					
			loader: new Ext.tree.TreeLoader({ dataUrl: 'data/favfolders.txt' }),
			root: new Ext.tree.AsyncTreeNode({ expanded: true }),
			rootVisible: false,
			lines: false
		};
		
		Ext.apply(this, Ext.apply(this.initialConfig, config));
		
		flymail.app.ui.NavigationPane.superclass.initComponent.apply(this, arguments);
	}
});

Ext.reg('fm_navpane', flymail.app.ui.NavigationPane);
